package cn.zspt.vank.mapper;

import cn.zspt.vank.domain.Dish;
import cn.zspt.vank.domain.User;
import cn.zspt.vank.domain.dto.DishSale;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper {
    Double getYearIncome();
    Double getMonthIncome();
    Double getDayIncome();

    Double getDayIncomeAll();

    List<DishSale> getDishSaleSort(String sortType);
    List<User>  findAllUser();

    void switchUserState(Integer userId);

    void saveUser(User user);

    List<Dish> findAllDish();

    void updateDish(Dish dish);

    void saveDish(Dish dish);
}
